<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    {{ message }}
</div>
<form th:action="@{/login}" method="post">
    姓名<input type="text" name="cname"> <br>
    密码 <input type="text" name="password"><br>
    <input type="submit" value="登录">
</form>
<script>
    new Vue({
        el: '#app',
        data: {
            message: 'Hello World!'
        }
    });
</script>
</body>
</html>